package cn.jolyoulu.common.web.security.enums;

import cn.jolyoulu.common.web.enums.IExpType;

/**
 * @Author: JolyouLu
 * @Date: 2025/1/28 23:25
 * @Description
 */
public enum SecurityExpType implements IExpType {
    OPERATION_FORBIDDEN(503,"权限不足"),
    TOKEN_NO_AVAIL(502,"Token失效"),
    TOKEN_NOT_EXIST(502,"Token失效")
    ;

    private final Integer code;
    private final String message;

    SecurityExpType(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.message;
    }
}
